//
//  GangGaoViewController.m
//  DJS
//
//  Created by 浪尖渝力 on 2018/2/28.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "GangGaoViewController.h"
#import "GangGaoView.h"
@interface GangGaoViewController ()
@property(nonatomic,strong)GangGaoView *aView;
@end

@implementation GangGaoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"广告详情";
    _aView=[GangGaoView new];
    [self.view addSubview:_aView];
    [_aView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.bottom.mas_equalTo(0);
    }];
    [self getData];
}

-(void)getData{
   
    NSDictionary *Dic=[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"%@",_carousel_id],@"carousel_id", nil];
    
    [ZQTools AFNPostDataUrl:@"api/index/banner_info" Dict:Dic andTableView:nil andViewController:self andSuccessBlock:^(id responseObject) {
        _aView.dic=responseObject;
        [_aView creatView];
        _aView.viewController=self;
    } anderrorBlock:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
